Optimal. Leaf size=204 \[ -\frac {b}{12 c^5 d^3 \left (1-c^2 x^2\right )^{3/2}}+\frac {5 b}{8 c^5 d^3 \sqrt {1-c^2 x^2}}+\frac {x^3 (a+b \text {ArcSin}(c x))}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {3 x (a+b \text {ArcSin}(c x))}{8 c^4 d^3 \left (1-c^2 x^2\right )}-\frac {3 i (a+b \text {ArcSin}(c x)) \text {ArcTan}\left (e^{i \text {ArcSin}(c x)}\right )}{4 c^5 d^3}+\frac {3 i b \text {PolyLog}\left (2,-i e^{i \text {ArcSin}(c x)}\right )}{8 c^5 d^3}-\frac {3 i b \text {PolyLog}\left (2,i e^{i \text {ArcSin}(c x)}\right )}{8 c^5 d^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 204, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 8, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {4791, 4749,
4266, 2317, 2438, 267, 272, 45} \begin {gather*} -\frac {3 i \text {ArcTan}\left (e^{i \text {ArcSin}(c x)}\right ) (a+b \text {ArcSin}(c x))}{4 c^5 d^3}+\frac {x^3 (a+b \text {ArcSin}(c x))}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {3 x (a+b \text {ArcSin}(c x))}{8 c^4 d^3 \left (1-c^2 x^2\right )}+\frac {3 i b \text {Li}_2\left (-i e^{i \text {ArcSin}(c x)}\right )}{8 c^5 d^3}-\frac {3 i b \text {Li}_2\left (i e^{i \text {ArcSin}(c x)}\right )}{8 c^5 d^3}+\frac {5 b}{8 c^5 d^3 \sqrt {1-c^2 x^2}}-\frac {b}{12 c^5 d^3 \left (1-c^2 x^2\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 267
Rule 272
Rule 2317
Rule 2438
Rule 4266
Rule 4749
Rule 4791
Rubi steps
\begin {align*} \int \frac {x^4 \left (a+b \sin ^{-1}(c x)\right )}{\left (d-c^2 d x^2\right )^3} \, dx &=\frac {x^3 \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {b \int \frac {x^3}{\left (1-c^2 x^2\right )^{5/2}} \, dx}{4 c d^3}-\frac {3 \int \frac {x^2 \left (a+b \sin ^{-1}(c x)\right )}{\left (d-c^2 d x^2\right )^2} \, dx}{4 c^2 d}\\ &=\frac {x^3 \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {3 x \left (a+b \sin ^{-1}(c x)\right )}{8 c^4 d^3 \left (1-c^2 x^2\right )}+\frac {(3 b) \int \frac {x}{\left (1-c^2 x^2\right )^{3/2}} \, dx}{8 c^3 d^3}-\frac {b \text {Subst}\left (\int \frac {x}{\left (1-c^2 x\right )^{5/2}} \, dx,x,x^2\right )}{8 c d^3}+\frac {3 \int \frac {a+b \sin ^{-1}(c x)}{d-c^2 d x^2} \, dx}{8 c^4 d^2}\\ &=\frac {3 b}{8 c^5 d^3 \sqrt {1-c^2 x^2}}+\frac {x^3 \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {3 x \left (a+b \sin ^{-1}(c x)\right )}{8 c^4 d^3 \left (1-c^2 x^2\right )}+\frac {3 \text {Subst}\left (\int (a+b x) \sec (x) \, dx,x,\sin ^{-1}(c x)\right )}{8 c^5 d^3}-\frac {b \text {Subst}\left (\int \left (\frac {1}{c^2 \left (1-c^2 x\right )^{5/2}}-\frac {1}{c^2 \left (1-c^2 x\right )^{3/2}}\right ) \, dx,x,x^2\right )}{8 c d^3}\\ &=-\frac {b}{12 c^5 d^3 \left (1-c^2 x^2\right )^{3/2}}+\frac {5 b}{8 c^5 d^3 \sqrt {1-c^2 x^2}}+\frac {x^3 \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {3 x \left (a+b \sin ^{-1}(c x)\right )}{8 c^4 d^3 \left (1-c^2 x^2\right )}-\frac {3 i \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{4 c^5 d^3}-\frac {(3 b) \text {Subst}\left (\int \log \left (1-i e^{i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{8 c^5 d^3}+\frac {(3 b) \text {Subst}\left (\int \log \left (1+i e^{i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{8 c^5 d^3}\\ &=-\frac {b}{12 c^5 d^3 \left (1-c^2 x^2\right )^{3/2}}+\frac {5 b}{8 c^5 d^3 \sqrt {1-c^2 x^2}}+\frac {x^3 \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {3 x \left (a+b \sin ^{-1}(c x)\right )}{8 c^4 d^3 \left (1-c^2 x^2\right )}-\frac {3 i \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{4 c^5 d^3}+\frac {(3 i b) \text {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{8 c^5 d^3}-\frac {(3 i b) \text {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{8 c^5 d^3}\\ &=-\frac {b}{12 c^5 d^3 \left (1-c^2 x^2\right )^{3/2}}+\frac {5 b}{8 c^5 d^3 \sqrt {1-c^2 x^2}}+\frac {x^3 \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {3 x \left (a+b \sin ^{-1}(c x)\right )}{8 c^4 d^3 \left (1-c^2 x^2\right )}-\frac {3 i \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{4 c^5 d^3}+\frac {3 i b \text {Li}_2\left (-i e^{i \sin ^{-1}(c x)}\right )}{8 c^5 d^3}-\frac {3 i b \text {Li}_2\left (i e^{i \sin ^{-1}(c x)}\right )}{8 c^5 d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(445\) vs. \(2(204)=408\).
time = 0.62, size = 445, normalized size = 2.18 \begin {gather*} \frac {-\frac {2 b \sqrt {1-c^2 x^2}}{(-1+c x)^2}+\frac {b c x \sqrt {1-c^2 x^2}}{(-1+c x)^2}-\frac {15 b \sqrt {1-c^2 x^2}}{-1+c x}-\frac {2 b \sqrt {1-c^2 x^2}}{(1+c x)^2}-\frac {b c x \sqrt {1-c^2 x^2}}{(1+c x)^2}+\frac {15 b \sqrt {1-c^2 x^2}}{1+c x}+\frac {12 a c x}{\left (-1+c^2 x^2\right )^2}+\frac {30 a c x}{-1+c^2 x^2}-9 i b \pi \text {ArcSin}(c x)+\frac {3 b \text {ArcSin}(c x)}{(-1+c x)^2}+\frac {15 b \text {ArcSin}(c x)}{-1+c x}-\frac {3 b \text {ArcSin}(c x)}{(1+c x)^2}+\frac {15 b \text {ArcSin}(c x)}{1+c x}+9 b \pi \log \left (1-i e^{i \text {ArcSin}(c x)}\right )+18 b \text {ArcSin}(c x) \log \left (1-i e^{i \text {ArcSin}(c x)}\right )+9 b \pi \log \left (1+i e^{i \text {ArcSin}(c x)}\right )-18 b \text {ArcSin}(c x) \log \left (1+i e^{i \text {ArcSin}(c x)}\right )-9 a \log (1-c x)+9 a \log (1+c x)-9 b \pi \log \left (-\cos \left (\frac {1}{4} (\pi +2 \text {ArcSin}(c x))\right )\right )-9 b \pi \log \left (\sin \left (\frac {1}{4} (\pi +2 \text {ArcSin}(c x))\right )\right )+18 i b \text {PolyLog}\left (2,-i e^{i \text {ArcSin}(c x)}\right )-18 i b \text {PolyLog}\left (2,i e^{i \text {ArcSin}(c x)}\right )}{48 c^5 d^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.40, size = 358, normalized size = 1.75
method | result | size |
derivativedivides | \(\frac {-\frac {a}{16 d^{3} \left (c x +1\right )^{2}}+\frac {5 a}{16 d^{3} \left (c x +1\right )}+\frac {3 a \ln \left (c x +1\right )}{16 d^{3}}+\frac {a}{16 d^{3} \left (c x -1\right )^{2}}+\frac {5 a}{16 d^{3} \left (c x -1\right )}-\frac {3 a \ln \left (c x -1\right )}{16 d^{3}}+\frac {5 b \arcsin \left (c x \right ) c^{3} x^{3}}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}-\frac {5 b \,c^{2} x^{2} \sqrt {-c^{2} x^{2}+1}}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}-\frac {3 b \arcsin \left (c x \right ) c x}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}+\frac {13 b \sqrt {-c^{2} x^{2}+1}}{24 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}-\frac {3 b \arcsin \left (c x \right ) \ln \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}+\frac {3 b \arcsin \left (c x \right ) \ln \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}+\frac {3 i b \dilog \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}-\frac {3 i b \dilog \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}}{c^{5}}\) | \(358\) |
default | \(\frac {-\frac {a}{16 d^{3} \left (c x +1\right )^{2}}+\frac {5 a}{16 d^{3} \left (c x +1\right )}+\frac {3 a \ln \left (c x +1\right )}{16 d^{3}}+\frac {a}{16 d^{3} \left (c x -1\right )^{2}}+\frac {5 a}{16 d^{3} \left (c x -1\right )}-\frac {3 a \ln \left (c x -1\right )}{16 d^{3}}+\frac {5 b \arcsin \left (c x \right ) c^{3} x^{3}}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}-\frac {5 b \,c^{2} x^{2} \sqrt {-c^{2} x^{2}+1}}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}-\frac {3 b \arcsin \left (c x \right ) c x}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}+\frac {13 b \sqrt {-c^{2} x^{2}+1}}{24 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}-\frac {3 b \arcsin \left (c x \right ) \ln \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}+\frac {3 b \arcsin \left (c x \right ) \ln \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}+\frac {3 i b \dilog \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}-\frac {3 i b \dilog \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}}{c^{5}}\) | \(358\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {\int \frac {a x^{4}}{c^{6} x^{6} - 3 c^{4} x^{4} + 3 c^{2} x^{2} - 1}\, dx + \int \frac {b x^{4} \operatorname {asin}{\left (c x \right )}}{c^{6} x^{6} - 3 c^{4} x^{4} + 3 c^{2} x^{2} - 1}\, dx}{d^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x^4\,\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )}{{\left (d-c^2\,d\,x^2\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________